﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="movement.aspx.cs" Inherits="ncp.Web.movement" %>
<%@ Import Namespace="ncp.Business" %>
<%@ Register Assembly="ncp.Controls" Namespace="ncp.Controls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="/uc/search.ascx" TagName="search"  TagPrefix="uc" %>
<%@ Register Src="/uc/headTop.ascx" TagName="headTop"  TagPrefix="uc" %>
<%@ Register Src="/uc/headLogo.ascx" TagName="headlogo"  TagPrefix="uc" %>
<%@ Register Src="/uc/menu.ascx" TagName="menu"  TagPrefix="uc" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagPrefix="uc" TagName="imglist" Src="~/uc/ImgList.ascx" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>中国农业信息化服务商</title>
    <link href="/css/module.css" rel="stylesheet" type="text/css" />
    <link href="/css/page.css" rel="stylesheet" type="text/css" />
    <link href="/css/reset.css" rel="stylesheet" type="text/css" />
    <script src="/js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="/js/common.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
            $(".bh-chpjs-wyl .bh-chpjs-con-wyl").each(function(i) {
                if (i % 2 == 0) {
                    $(this).addClass("bh-chpjs-conBg-wyl");
                } else {
                $(this).addClass("bh-chpjs-conBorder-wyl");
                }
            });
            var key = '<%=Request.QueryString["key"] %>';
            key = key == "" ? "" : key.substring(1);
            $("#txtSearch").val(key);
            $("#searchtype").val(2);
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <!--Head Begin--> 
<!--Head Top-->
<uc:headTop id="headtop" runat="server" />
<!--Head Logo-->
<uc:headlogo id="headlogo" runat="server" />
<!--Head Nav-->
<div id="head-nav">
  <div id="head-nav-center">
    <uc:menu ID="menu" runat="server"/>
    <uc:search id="search" runat="server" />
  </div>
</div>
<!--Head End-->
<div class="bh-space"></div>
<div class="wp">
  <div class="nc5left bh-fl">
    <div class="bh-chpjs-wyl">
      <asp:Repeater ID="repNews" runat="server">
            <ItemTemplate>
                <div class="bh-chpjs-con-wyl">
                    <div class="subnewstitle"><b><a target="_blank"  href="/html/<%#Eval("NC_Code") %>/<%#EncryptHelper.EncryptString(Eval("News_Id").ToString()) %>.html"><%#Eval("News_Title") %></a></b></div>
                    <div class="bh-chpCon-title-wyl"><span><b>时间：</b><%#Eval("News_Date","{0:yyyy-MM-dd}")%></span></div>
                    <div class="bh-chpjs-neir-wyl"> <span>描述：</span>
                      <p><%#Eval("News_Description")%></p>
                      <div class="bh-clear"></div>
                    </div>
                </div>
            </ItemTemplate>
            <FooterTemplate>
                <asp:Literal ID="ltEmpty" Text="<table style='border:none;width:100%'><tr><td style='text-align:center;height:40px;'>没有找到相关内容！</td></tr></table>" runat="server" Visible='<%#bool.Parse((repNews.Items.Count==0).ToString())%>'></asp:Literal>
            </FooterTemplate>
        </asp:Repeater>
     
      <div class="bh-zzg-ny-cleftbrbottom">
         <webdiyer:aspnetpager id="AspNetPager1" runat="server"  CssClass="anpager" CurrentPageButtonClass="cpb"
        onpagechanged="AspNetPager1_PageChanged" UrlPageIndexName="pageindex" EnableUrlRewriting="true" UrlRewritePattern="/movement/{0}.html%key%"
        CustomInfoHTML="<p>第<span>%CurrentPageIndex%</span>页，共<span>%PageCount%</span>页，每页显示<span>%PageSize%</span>条</p>"
    Width="100%" HorizontalAlign="right" AlwaysShowFirstLastPageNumber="true" PageSize="10" FirstPageText="首页" 
        LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"></webdiyer:aspnetpager> 
        <div class="bh-clear"></div>
      </div>
    </div>
  </div>
  <div class="nc5right bh-fr">
    <div class="xad">
    <cc1:Ads ID="Ads1" Type="1,2,3,4" AdClass="6" ShowNumber="1" DefaultText="<img src='/image/private/pic-8.jpg' width='204' height='60' />" Height="60" Width="204" runat="server" />
    </div>
    <div class="bh-space"></div>
    <div class="news-listindexleft">
      <h3>热门信息</h3>
      <ul>
        <asp:Repeater ID="repHot" runat="server">
            <ItemTemplate>
            <li><a href="/html/<%#Eval("NC_Code") %>/<%#EncryptHelper.EncryptString(Eval("News_Id").ToString()) %>.html" title="<%#Eval("News_Title") %>" target="_blank"><%#CommonBll.CutString(Eval("News_Title").ToString(),30,false)%></a></li>
            </ItemTemplate>
          </asp:Repeater>
      </ul>
    </div>
    <div class="bh-space"></div>
    <div class="news-listindexleft">
      <h3>推荐信息</h3>
      <ul>
        <asp:Repeater ID="repRec" runat="server">
            <ItemTemplate>
            <li><a href="/html/<%#Eval("NC_Code") %>/<%#EncryptHelper.EncryptString(Eval("News_Id").ToString()) %>.html" title="<%#Eval("News_Title") %>" target="_blank"><%#CommonBll.CutString(Eval("News_Title").ToString(), 30, false)%></a></li>
            </ItemTemplate>
          </asp:Repeater>
      </ul>
    </div>
    <uc:imglist ID="imglist" runat="server"/>
    
  </div>
  <div class="bh-clear"></div>
</div>
<div class="bh-space"></div>
<!--Foot Begin-->
<!--#include file="/uc/footer.htm"-->
<!--Foot End-->
    </form>
</body>
</html>